package cn.wolfcode.wms.domain;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Getter
@Setter
public class OrderBill extends BaseAuditDomain {

    //订单编号
    private String sn;
    //业务时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date vdate;
    //订单总金额
    private BigDecimal totalAmount;
    //订单总数量
    private BigDecimal totalNumber;

    //订单所关联的供应商
    private Supplier supplier;
    //采购定单明细
    private List<OrderBillItem> items = new ArrayList<>();
}